package pactera.tf.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import pactera.tf.dataobj.ChatMsgDO;
import pactera.tf.dataobj.GroupChatMsgDO;
import pactera.tf.dataobj.GroupInfoDO;
import pactera.tf.mapper.GroupChatMsgMapper;
import pactera.tf.service.GroupChatMsgService;

@Service
public class GroupChatMsgServiceImpl implements GroupChatMsgService {
    @Autowired
    GroupChatMsgMapper groupChatMsgMapper;

	@Override
    public List<GroupChatMsgDO> listAllMsg(String guoupId){
        return groupChatMsgMapper.listAllMsg(guoupId);
    }

	@Override
    public void insertChatMsg(GroupChatMsgDO chatMsg){
    	groupChatMsgMapper.insertChatMsg(chatMsg);
    }

	@Override
	public String getGroupUserNickName(String sendUserId, String groupId) {
		return groupChatMsgMapper.getGroupUserNickName(sendUserId,groupId);
	}

	@Override
	public String getUserImg(String sendUserId) {
		return groupChatMsgMapper.getUserImg(sendUserId);
	}
}
